package com.bjfu.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bjfu.demo.dao.SiteDataMapper;
import com.bjfu.demo.entity.SiteData;
import com.bjfu.demo.entity.SiteDataExample;

/**
 * @create 2021-02-22 10:04
 */
@Service
public class SiteDataService {

  @Autowired private SiteDataMapper siteDataMapper;

  public Object selectAll() {
    List<SiteData> siteData = siteDataMapper.selectByExample(new SiteDataExample());
    return siteData;
  }


  public List<SiteData> getSiteId(String district){
    return siteDataMapper.selectSiteId(district);
  }
}
